package com.mebs.model.service.visa;

import org.jt.jet.content.JetNamedObject;

public enum Responsibility implements JetNamedObject {
    MEBS(1, "MEBS"),
    Client(2, "Client");

    public final int type;
    public final String name;

    Responsibility(int type, String name)
    {
        this.type = type;
        this.name = name;
    }

    public static Responsibility getObjectByType(int type)
    {
        return Responsibility.values()[type - 1];
    }

    public Object getObjectId()
    {
        return type;
    }

    public String getObjectName()
    {
        return name;
    }

    public int getType()
    {
        return type;
    }

    public String getName()
    {
        return name;
    }
}
